package com.zlq.cn.service.un;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zlq.cn.entity.VipLevel;
import com.zlq.cn.mapper.un.VipLevelMapper;
import org.bytedeco.opencv.presets.opencv_core;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhoucl
 * @since 2020-06-13
 */
@Service
public class VipLevelService extends ServiceImpl<VipLevelMapper, VipLevel> {

    public VipLevel findVipLevelByVipKey(String vipKey) {
        return super.lambdaQuery()
                .eq(VipLevel::getVipKey, vipKey)
                .one();
    }
}
